﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="Breadcrumb" runat="server">
    <%: Html.Partial("Breadcrumb") %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%: Html.Partial("Sidebar") %>
    <div id="main">
        <div class="main-block">
            <h2 class="title">
                <%: this.ViewBag.Category.Name %></h2>
            <div class="main-block-content clearfix">
                <div class="subcategory">
                    <% var list = ViewData["Categories"] as List<Kooboo.Web.Models.CategorySummary>;
                       foreach (var i in list)
                       {
                    %>
                    <a href="/categories/<%= i.Id %>">
                        <%: i.Name%>(<%= i.Count%>)</a>
                    <%  
                       }
                    %>
                </div>
                <%: Html.Partial("SortBy") %>
                <% foreach (object item in this.Model)
                   {
                       var model = item.Members().Properties;
                %>
                <div class="product-item">
                    <a href="<%: model["Url"]%>">
                        <img src="<%: model["Image"]%>" alt="" /></a> <a href="<%: model["Url"]%>">
                            <%: model["Name"]%></a> <span>
                                <%: model["Price"]%></span>
                </div>
                <%}%>
                <div class="pagination">
                   <%-- <%: Html.FrontPager(Model) %>--%>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
